package com.generatortest.sys.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 组织机构
 * </p>
 *
 * @author chenXi
 * @since 2022-02-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_organization")
public class Organization implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 机构id
     */
    @TableId(value = "organization_id", type = IdType.AUTO)
    private Integer organizationId;

    /**
     * 上级id,0是顶级
     */
    private Integer parentId;

    /**
     * 机构名称
     */
    private String organizationName;

    /**
     * 机构全称
     */
    private String organizationFullName;

    /**
     * 机构类型
     */
    private Integer organizationType;

    /**
     * 负责人id
     */
    private Integer leaderId;

    /**
     * 排序号
     */
    private Integer sortNumber;

    /**
     * 备注
     */
    private String comments;

    /**
     * 是否删除,0否,1是
     */
    private Integer deleted;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 修改时间
     */
    private Date updateTime;


}
